#ifndef ALBUMCOVER_H
#define ALBUMCOVER_H

#include <QWidget>
#include <QWebView>

namespace Ui {
    class albumCover;
}

class AlbumCover : public QWidget
{
    Q_OBJECT

public:
    explicit AlbumCover(QWidget *parent = 0);
    ~AlbumCover();

protected:
    bool eventFilter(QObject *, QEvent *);

public slots:
    void refresh();
    void display(bool bo);

private:
    QWebView *view;
    QWebView *temporaryView;
    QWebView *showBigCover;
    QStringList coverUrls;
    QString musicFileName;
    QUrl google;

    bool prepare();
};

#endif // ALBUMCOVER_H
